package com.party.core.model.commune;

import java.util.Objects;

/**
 * @program: party
 * @description: 用户积分输出实体
 * @author: Hua Qunhao
 * @create: 2019-08-14 10:00
 **/
public class CUserIntegralOutput extends CUserIntegral {

    //分类名称
    private String cTypeName;
    //积分项名称
    private String cItemName;
    //分数
    private Double itemFraction;
    // 积分类型 是否为推荐 (0：普通，1：推荐)
    private Integer category;

    public String getcTypeName() {
        return cTypeName;
    }

    public void setcTypeName(String cTypeName) {
        this.cTypeName = cTypeName;
    }

    public String getcItemName() {
        return cItemName;
    }

    public void setcItemName(String cItemName) {
        this.cItemName = cItemName;
    }

    public Double getItemFraction() {
        return itemFraction;
    }

    public void setItemFraction(Double itemFraction) {
        this.itemFraction = itemFraction;
    }

    public Integer getCategory() {
        return category;
    }

    public void setCategory(Integer category) {
        this.category = category;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        CUserIntegralOutput that = (CUserIntegralOutput) o;
        return Objects.equals(cTypeName, that.cTypeName) &&
                Objects.equals(cItemName, that.cItemName) &&
                Objects.equals(itemFraction, that.itemFraction);
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), cTypeName, cItemName, itemFraction);
    }

    @Override
    public String toString() {
        return "CUserIntegralOutput{" +
                "cTypeName='" + cTypeName + '\'' +
                ", cItemName='" + cItemName + '\'' +
                ", itemFraction=" + itemFraction +
                '}';
    }
}
